package com.lsh.payment.core.constant;

import com.lsh.payment.core.util.PropertiesUtil;

import java.io.File;

/**
 * @author peter
 */
public class BusinessConstant {

    public final static String STRATEGY_BEAN_NAME_PREFIX = "strategy.";

    /**
     * 微信
     */
    public final static int WECHATPAY = 1;
    /**
     * 微信查询
     */
    public final static int WECHATQUERY = 2;
    /**
     * 支付宝
     */
    public final static int ALIPAY = 3;
    /**
     * 支付宝查询
     */
    public final static int ALIQUERY = 4;
    /**
     * 钱方
     */
    public final static int QFPAY = 5;
    /**
     * 钱方查询
     */
    public final static int QFQUERY = 6;

    public final static int XYPAY = 7;

    public final static int XYQUERY = 8;

    public final static int CMBCPAY = 9;

    public final static int CMBCQUERY = 10;

    public final static int ALLINPAY = 11;

    public final static int ALLINQUERY = 12;

    public final static int IPCPAY = 13;

    public final static int IPCQUERY = 14;

    public final static int MIS_PAY = 16;

    public final static int MIS_QUERY_PAY = 17;

    public final static int CMPAY = 18;

    public final static int CMQUERY = 19;
    /**
     * 微信扫码
     */
    public final static int WXBSM = 21;
    /**
     * 多点
     */
    public final static int DMALLPAY = 27;
    /**
     * 多点查询
     */
    public final static int DMALLQUERY = 28;

    /**
     *
     */
    public final static int OPERATE_SUCCESS = 1;
    /**
     *
     */
    public final static int OPERATE_FAIL = 0;
    /**
     *
     */
    public final static String OPERATE_SUCCESS_STRING = "SUCCESS";
    /**
     *
     */
    public final static String OPERATE_FAIL_STRING = "FAIL";

    /**
     * 支付宝下载对账单参数
     */
    public final static String ALIPAY_RESPONSE = "alipay_data_dataservice_bill_downloadurl_query_response";
    /**
     * 签名
     */
    public final static String ALIPAY_SIGN = "sign";
    /**
     * 请求成功
     */
    public final static String ALIPAY_CODE_SUCCESS = "10000";
    /**
     * 下载地址
     */
    public final static String DOWNLOAD_BILL_URL = "bill_download_url";

    /**
     * 多点回调成功标示
     */
    public final static String DMALL_NOTIFY_SUCCESS = "0000";

    /**
     * 多点预下单渠道
     */
    public final static String DMALL_REQUEST_CHANNEL = "lianshang";

    /**
     * 多点下单成功表示
     */
    public final static String DMALL_REQUEST_SUCCESS = "0000";

    /**
     * 0-获取支付订单,1-收款回告,2-查询
     */
    public final static int LOG_PAY_TYPE_PAY_NOTIFY = 1;

    /**
     * 支付平台回调业务方支付结果最大次数
     */
    public final static Integer TMS_MAX_TIMES = 10;
    /**
     * 添加回调任务初始状态
     */
    public final static Integer TMS_TASK_STATUS_NEW = 0;
    /**
     * /回调任务执行成功
     */
    public final static Integer TMS_TASK_STATUS_SUCCESS = 1;
    /**
     * 回调最大次数后不成功的,回调失败
     */
    public final static Integer TMS_TASK_STATUS_FAIL = 2;

    public final static String BILL_DOWNLOAD_PATH = PropertiesUtil.getValue("bill_download_path");

    public final static String BILL_DOWNLOAD_PATH_WX_GROUPON = BILL_DOWNLOAD_PATH + File.separator + "wxpayGroupon";
    public final static String BILL_DOWNLOAD_PATH_WX = BILL_DOWNLOAD_PATH + File.separator + "wxpay";
    public final static String BILL_DOWNLOAD_PATH_ALI = BILL_DOWNLOAD_PATH + File.separator + "alipay";
    public final static String BILL_DOWNLOAD_PATH_LKL = BILL_DOWNLOAD_PATH + File.separator + "lklpay";
    public final static String BILL_DOWNLOAD_PATH_QF = BILL_DOWNLOAD_PATH + File.separator + "qfpay";
    public final static String BILL_DOWNLOAD_PATH_XY = BILL_DOWNLOAD_PATH + File.separator + "xypay";
    public final static String BILL_DOWNLOAD_PATH_CMBC = BILL_DOWNLOAD_PATH + File.separator + "cmbcpay";
    public final static String BILL_DOWNLOAD_PATH_IPC = BILL_DOWNLOAD_PATH + File.separator + "ipcpay";
    public final static String BILL_DOWNLOAD_PATH_ALLIN = BILL_DOWNLOAD_PATH + File.separator + "allinpay";
    public final static String BILL_DOWNLOAD_PATH_PURSE = BILL_DOWNLOAD_PATH + File.separator + "pursepay";

    public final static String BILL_DOWNLOAD_PATH_CM = BILL_DOWNLOAD_PATH + File.separator + "cmpay";

    /**
     * 与第三方通信成功,(下单,查询接口)包括返回数据请求签名认证
     */
    public final static String PAY_REQUEST_SUCCESS = "1";
    public final static String PAY_REQUEST_SUCCESS_MESSAGE = "SUCCESS";
    /**
     * 与第三方通信失败(下单,查询接口)
     */
    public final static String PAY_REQUEST_FAIL = "2";
    public final static String PAY_REQUEST_FAIL_MESSAGE = "FAIL";

    public final static String QUERY_WX_SERVICE_NAME = "wxQueryServiceImpl";

    public final static String QUERY_ALI_SERVICE_NAME = "aliQueryServiceImpl";

    public final static String QUERY_CM_SERVICE_NAME = "cmQueryServiceImpl";

    public final static String QUERY_ALLIN_SERVICE_NAME = "allinQueryServiceImpl";

    public final static String QUERY_MIS_SERVICE_NAME = "purseQueryServiceImpl";
    /**
     * PAY_WAY
     */
    public final static String PAY_WAY = "payWay";

    public final static String NOTIFY_RESPONSE_CONTENT = "content";

    public final static String NOTIFY_RESPONSE_CONTENT_RETURN_CODE = "return_code";

}
